//
//  NSString+JSHandler.m
//  ShopMobile
//
//  Created by mac on 17/10/20.
//  Copyright © 2017年 soubao. All rights reserved.
//

#import "NSString+JSHandler.h"

@implementation NSString (JSHandler)
-(BOOL(^)())JS_RegularPhoneNumber{
    return ^(){
        NSString *MOBILE = @"^1(3[0-9]|4[57]|5[0-35-9]|7[01235678]|8[0-9])\\d{8}$";
        NSPredicate *regextestmobile = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", MOBILE];
        return [regextestmobile evaluateWithObject:self];
    };
    
}
@end
